/**
 * 
 */
package com.excalibur.core.mvc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

public abstract class BaseErrorController extends BaseController {

	@RequestMapping("/error/404")
	@ResponseBody
	public String err404() {
		return "not found the page";
	}

	@RequestMapping("/error/503")
	@ResponseBody
	public String err503() {
		return "Service Unavailable";
	}

	@RequestMapping("/error/500")
	@ResponseBody
	public String err500() {
		return "Server Internal Error";
	}

	@RequestMapping("/error/400")
	@ResponseBody
	public String err400() {
		return "wrong parameter";
	}
}
